package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细
 */
@Data
public class OrderDetail implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;
    @ExcelIgnore
    private Long id;

    //名称
    @ExcelProperty("名称")
    private String name;

    //订单id
    @ExcelProperty("订单id")
    private Long orderId;

    //菜品id
    @ExcelProperty("菜品id")
    private Long dishId;

    //套餐id
    @ExcelProperty("套餐id")
    private Long setmealId;

    //口味
    @ExcelProperty("口味")
    private String dishFlavor;

    //数量
    @ExcelProperty("数量")
    private Integer number;

    //金额
    @ExcelProperty("金额")
    private BigDecimal amount;

    //图片
    @ExcelIgnore
    private String image;
}
